package com.gluck.cases.core.block;

import com.github.pagehelper.PageInfo;
import com.gluck.cases.core.modal.dto.RolePermissionDTO;
import com.gluck.cases.core.modal.entity.RolePermission;

/**
 * @ClassName RolePermissionBlock
 * @Desc RolePermissionBlock
 * @Author I am Gluck
 * @Date 2022/5/20 - 12:49 上午
 **/
public interface RolePermissionBlock {

    /**
     * 功能描述: 关联角色权限
     * @Params []
     * @Return
     * @Author I`m Gluck
     * @Date 2022/5/20
     */
    RolePermission relatedPermissionByRole(RolePermissionDTO dto);

    /**
     * 功能描述: 解除关联
     * @Params [dto]
     * @Return java.lang.Integer
     * @Author I`m Gluck
     * @Date 2022/5/20
     */
    Integer disassociatePermissionByRole(RolePermissionDTO dto);

    PageInfo<RolePermission> selectByPagerHelper(Integer startPage, Integer endPage);

}
